package Array.arrayone;

import java.util.Scanner;

public class TestSxh {
    public static void main(String[] args){
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入您的数字");
        int num= sc.nextInt();
        int ge=num%10;
        int shi=num/10%10;
        int bai=num/100;
        if ((ge*ge*ge)+(shi*shi*shi)+(bai*bai*bai)==num){
            System.out.println("这个数是水仙花数");
        } else{
            System.out.println("这个数不是水仙花数");
        }
    }
}
